package band.wukong.practice.webservice.kh.sample13;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.jws.WebService;

/**
 * @author wukong(wukonggg@139.com)
 */
@WebService(
        endpointInterface = "band.wukong.practice.webservice.kh.sample13.CalcService",
        wsdlLocation = "META-INF/wsdl/kh/sample13.wsdl",
        portName = CalcConst.PORT_NAME,
        serviceName = CalcConst.SERVICE_NAME,
        targetNamespace = CalcConst.SERVICE_NS
)
public class CalcServiceImpl implements CalcService {

    private static final Logger logger = LoggerFactory.getLogger(CalcServiceImpl.class);

    @Override
    public int add(int num1, int num2, License license) {
        logger.debug("license = " + license);

        return num1 + num2;
    }
}
